package com.jeff.android.lab.compat;

import com.jeff.android.lab.BaseRecyclerViewFragment;
import com.jeff.android.lab.compat.ten.Android10CompatFragment;
import com.jeff.android.lab.util.RouterUtil;

import java.util.ArrayList;
import java.util.List;

/**
 * @author: dingfeng
 * @date: 2020-04-16
 * @since: 1.0.0
 **/
public class CompatMainFragment extends BaseRecyclerViewFragment {

    @Override
    protected List<String> getData() {
        return new ArrayList<String>() {
            {
                add("android10");
            }
        };
    }

    @Override
    protected void launch(String widget) {
        if ("android10".equals(widget)) {
            RouterUtil.launchFragmentActivity(getContext(), Android10CompatFragment.class);
        }
    }



}
